console.log('hello webpack')

class A {
    constructor() {
        this.str = 'hello A'
    }

    sayHello(){
        console.log(this.str)
    }

    getApi(){
        fetch('/api/hello').then((res)=>{
            console.log(res.text())
        })
    }
}
let a = new A()
a.getApi()
a.sayHello()
